<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>05-通过插槽分发内筒</title>
</head>
<body>
  <div id="app">
    <alert-box>
      Something bad happend
    </alert-box>
  </div>
  
</body>
<script src="./vue1111.js"></script>
<script>
  Vue.component('alert-box',{
    template:`
    <div class="demo-alert-alert">
      <strong>Error!</strong>
      <slot></slot>
    </div>
    `
  })
</script>
</html>